<?php
class RoomEntity extends AbstractEntity {
    
    public function __construct($valueMap) {
        parent::__construct(
                
                /* table */
                'room',
                
                /* field names */
                array(
                    'code',
                    'building_code',
                    'notes',
                    'gender',
                    'capacity',
                    'accomodation_type_code',
                    'order_number'
                ),
                
                /* primary keys */
                'code',
                
                /* values */
                $valueMap
        );
    }
}
